package com.zerox.mapper;


import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {

    SysUser selectByUsername(String account);

    List<SysUser> list(@Param("startIndex") Integer startIndex,@Param("pageSize") Integer pageSize,@Param("realName")String realName,@Param("roleId")Integer roleId);

    int count(@Param("realName")String realName,@Param("roleId")Integer roleId);

    int add(SysUser sysUser);

    SysUser selectById(Integer id);

    int delete(Integer id);

    int update(SysUser sysUser);
}
